import VueRouter from 'vue-router'   //导入包

import  account from './zj/Account.vue'    //  第四步  自定义导入组件   然后 挂载
import  regiest from './zj/Regiest.vue'
import qq from './zj/子组件qq.vue'
import chat from './zj/子组件chat.vue'

  var router=new VueRouter({             //创建路由对象  
    routes:[
              //       { path: '/account', component: regist ( 没有就要去创建) }
              { path: '/account', 
              component: account ,
              children:[
                { path: 'qq', component: qq } ,
                { path: 'chat', component: chat } 

              ]
             } ,


              { path: '/regiest', component: regiest }      
    ]
  });

  export default router      //向外暴露路由 